<template>
    <div class="page-header">
        <div class="flsc">
            <div class="page-header-span"></div>
            <div class="page-header-title">
                {{ title }}
            </div>
        </div>

        <div class="flec">
            <slot name="right"></slot>
        </div>
    </div>
</template>

<script setup>
const props = defineProps({
    title: {
        type: String,
        default: ''
    }
})
</script>

<style scoped lang="scss">
.page-header {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .flsc {
        height: 100%;
    }

    .page-header-span {
        width: 4px;
        height: 20px;
        background-color: #4885A4;
        border-radius: 10px;
        margin-right: 10px;
    }

    .page-header-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }
}
</style>